package kanbing;

public class Test {
    public static void main(String[] args) throws Exception {
        Thread thread = new Special();
        thread.setName("特需号");
        thread.setPriority(10);
        Thread.currentThread().setPriority(1);
        Thread.currentThread().setName("普通号");
        thread.start();
        for (int i = 1; i <= 50; i++) {
            Thread.sleep(1000);
            System.out.println("第"+i+"个普通号病人");
            if(i==10){
                thread.join();
            }
        }
        System.out.println(Thread.currentThread().getName()+"检查完毕---------");
    }
}
